import Mock from 'mockjs';
const LoginUsers = [
  {
    id: 1,
    username: 'admin',
    password: '123456',
    avatar: 'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1510650552965&di=8f97905c03e7a3ee7eb261f8cdf2b846&imgtype=0&src=http%3A%2F%2Fwww.icosky.com%2Ficon%2Fpng%2FApplication%2FCrystal%2520Project%2520Application%2Fgadu.png',
    name: '张某某'
  }
];

const Users = [];

for (let i = 0; i < 86; i++) {
  Users.push(Mock.mock({
    id: Mock.Random.guid(),
    name: Mock.Random.cname(),
    addr: Mock.mock('@county(true)'),
    'age|18-60': 1,
    birth: Mock.Random.date(),
    sex: Mock.Random.integer(0, 1),
    phone: Mock.Random.integer(13, 13),
    bednum: Mock.Random.integer(3, 3),
    statusValue:"待称重"
  }));
}

const Medciation = [];

for (let i = 0; i < 7; i++) {
  Medciation.push(Mock.mock({
    Id: Mock.Random.guid(),
    TypeName: "治疗",
    ClassificationName: "药物",
    DrugName: "地塞米松",
    Num: Mock.Random.integer(0, 10),
    Dose: Mock.Random.integer(0, 10),
    Unit:"mg",
    Usage:"立即",
    Pathway:"静脉注射",
    Mode:"",
    StartDate:"2017-11-10",
    EndDate:"2017-12-10",
    CreatePerson:"测试",
    CreateTime:"2017-12-11"
  }));
}

const Dialysisdata = [];

for (let i = 0; i < 20; i++) {
  Dialysisdata.push(Mock.mock({
    Id: Mock.Random.guid(),
    EventName: "透析血压高",
    ElectricalDegree: Mock.Random.integer(10, 50),
    TMP: Mock.Random.integer(36, 42),
    CVP:Mock.Random.integer(60, 100),
    UFV:Mock.Random.integer(200, 1500),
    BloodFlow:Mock.Random.integer(500, 3000),
    BT:Mock.Random.integer(10, 50),
    HR:Mock.Random.integer(50, 120),
    DBP:Mock.Random.integer(70, 110),
    SBP:Mock.Random.integer(90, 150),
    Time:"2017-12-11"
  }));
}

const Treatmentdata = [];

for (let i = 0; i < 3; i++) {
  Treatmentdata.push(Mock.mock({
    Id: Mock.Random.guid(),
    Name: "HF",
    DialysateFrequency: Mock.Random.integer(1, 4),
    Dialysate: "Ca1.5透析液",
    TreatmentMethods:"HDF内瘘",
    DialysisTimeLength:Mock.Random.integer(1, 5),
    DialysateFlow:Mock.Random.integer(100, 800),
    Status:'启用',
    VascularAccess:'VBS监测管',
    DialyzerType:'8LR',
    Time:"2017-12-11"
  }));
}

export { LoginUsers, Users,Medciation,Dialysisdata,Treatmentdata };
